<!--<?php print <<<EOT
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$db_blogname} {$db_metatitle} - powered by lxblog.net</title>
<link href="$imgpath/$stylepath/styleuser.css" rel="stylesheet" type="text/css" />
<style type="text/css">
body{ padding:0; margin:0; background:url(bg.jpg) repeat-x #F4F4F4; }
*{ font-size: 12px; font-family:Tahoma,Arial,Verdana,simsun}
td{ font:12px/160% Tahoma }
a{ color:#1C6C9D; text-decoration:none}
.ip{border:1px solid #bebebe; padding:2px};
a:hover { text-decoration:underline}
input{ padding:2px; margin:0; list-style: none }
h2{ font:bold 16px Tahoma; padding: 5px 12px;color: #217EA0; }
.fr{ float: right }
#lg p { font: bold 14px/200% Arial;color: #666 }
.bt{ padding:1px 2px; height:22px ; background: url($imgpath/$stylepath/user/btn.gif) 0 80% repeat-x  #fff; border: 1px solid #D7D7D7; color: #666}
</style>
</head>
<body>
<form action="$loginurl" method="post">
<input type="hidden" name="jumpurl" value="$pre_url">
<input type="hidden" name="step" value="2">
<input type="hidden" name="forward" value="$forward" />
<div style="width:354px; padding:2px 0;background:#fff; border:1px solid #A6A4A5;margin:70px auto">
  <div style="width:350px; margin:auto ;background: url($imgpath/$stylepath/user/pwlogo.jpg) 95% 0 no-repeat #8C8C8C; height:60px"></div>
  <div style="width:350px;margin:2px auto auto">
	<div class="box1">
	  <h2>用户登录</h2>
	  <div id="lg" style="width:60%;margin:30px auto 50px;">
		<p>
<!--
EOT;
if(empty($logindb)){print <<<EOT
-->
		用户名<input type="hidden" name="pwtypen" value="username">
<!--
EOT;
}else{print <<<EOT
-->
		<select name="pwtypen" style="width:65px; vertical-align:middle">
		  <option value="username">用户名</option>
<!--
EOT;
foreach($logindb as $key => $value){print <<<EOT
-->
		  <option value="$key">$value</option>
<!--
EOT;
}print <<<EOT
-->
		</select>
<!--
EOT;
}print <<<EOT
-->
		<br />
		<input name="pwtypev" value="" size="40" class="ip" style="width:180px" /></p>
		<p> 密码<br />
		<input type="password" name="pwpwd" value="" size="40" class="ip" style="width:180px" /></p>
		<p> <select name="cktime" style="width:75px;">
		  <option value="31536000">一年</option>
		  <option value="2592000">一个月</option>
		  <option value="86400">一天</option>
		  <option value="3600">一小时</option>
		  <option value="0">即时</option>
		</select></p>
<!--
EOT;
if($rawwindid){print <<<EOT
-->
		<p> 认证码 <input name="gdcode" value="" size="5" class="ip">
		<img id="ck" src="$ckurl?windid=$rawwindid" alt="看不清楚，换一张" align="absmiddle" style="cursor: pointer;" onclick="javascript:newgdcode(this,this.src);" /></p>
<!--
EOT;
}print <<<EOT
-->
		<div>
		  <span class="fr"><a href="$regurl">注册</a></span>
		  <input type="submit" value="  提 交  " class="bt" onclick="return CheckLogin(this.form);" />
		  <div class="c"></div>
		</div>
	  </div>
	  <div class="c"></div>
	</div>
  </div>
  <div class="c"></div>
</div>
<script language='JavaScript'>
function CheckLogin(form){
	if ((form.pwtypen.value!='username' && form.pwtypen.value!='uid' && form.pwtypen.value!='email' && form.pwtypen.value!='domainname') || form.pwtypev.value=='' || form.pwpwd.value===''
<!--
EOT;
if($rawwindid){print <<<EOT
-->
 || form.gdcode.value==''
<!--
EOT;
}print <<<EOT
-->
 ) {
<!--
EOT;
if($rawwindid){print <<<EOT
-->
		newgdcode(document.getElementById('ck'),'$ckurl?windid=$rawwindid');
<!--
EOT;
}print <<<EOT
-->
		alert('任意项没有填写，请检查每项是否填写正确');
		return false;
	}
}
function newgdcode(obj,url) {
	obj.src = url + '&nowtime=' + new Date().getTime();
}
</script>
</form>
</body>
</html>
<!--
EOT;
?>-->